﻿<%@ Page Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="vControleReserva.aspx.cs" Inherits="View_vControleReserva" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
    <asp:Content ID="ControleReserva" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<script language="javascript" type="text/javascript">
// <!CDATA[

function Text1_onclick() {

}

// ]]>
</script>

        &nbsp;<table style="width: 513px">
            <tr>
                <td colspan="3" style="font: caption; vertical-align: middle; text-transform: none; width: 638px; color: #000066; height: 26px; background-color: tan; text-align: center">
                    Insira os dados do usuário</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    Código do Usuário:</td>
                <td style="width: 356px">
                    <input id="Text1" style="width: 347px" type="text" onclick="return Text1_onclick()" /></td>
                <td style="width: 8px">
                    <input id="Button1" type="button" value="Buscar" /></td>
            </tr>
            <tr>
                <td style="width: 100px">
                    Nome do Usuário:</td>
                <td style="width: 356px">
                    <input id="Text2" style="width: 347px" type="text" /></td>
                <td style="width: 8px">
                    <input id="Button2" type="button" value="Buscar" /></td>
            </tr>
            <tr>
                <td colspan="3" style="font: caption; vertical-align: middle; text-transform: none;
                    width: 638px; color: #000066; height: 26px; background-color: tan; text-align: center">
                    Insira os dados do material</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    Código do
                    <br />
                    Material:</td>
                <td style="width: 356px">
                    <input id="Text3" type="text" /></td>
                <td style="width: 8px">
                    <input id="Button3" type="button" value="Buscar" /></td>
            </tr>
            <tr>
                <td style="width: 100px; height: 21px">
                    Título do
                    <br />
                    Material:</td>
                <td colspan="2" style="height: 21px">
                    <input id="Text4" style="width: 418px" type="text" /></td>
            </tr>
            <tr>
                <td style="width: 100px">
                    Autor:</td>
                <td colspan="2">
                    <input id="Text5" style="width: 418px" type="text" /></td>
            </tr>
            <tr>
                <td colspan="3" style="font: caption; vertical-align: middle; text-transform: none;
                    width: 638px; color: #000066; height: 26px; background-color: tan; text-align: center">
                    Insira os dados da reserva</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    Data da
                    <br />
                    Reserva:</td>
                <td style="width: 356px">
                    <input id="Text6" type="text" /></td>
                <td style="width: 8px">
                    <input id="Button4" type="button" value="Efetuar" /></td>
            </tr>
            <tr>
                <td style="width: 100px">
                    Observação:</td>
                <td style="width: 356px">
                    <input id="Text1" size="" style="width: 347px" type="text" /></td>
                <td style="width: 8px">
                    <input id="Button5" size="" style="font-size: 7pt; width: 62px" type="button" value="Cancelar" /></td>
            </tr>
            <tr>
                <td colspan="3" style="font: caption; vertical-align: middle; text-transform: none;
                    width: 638px; color: #000066; height: 26px; background-color: tan; text-align: center">
                    Lista de reservas efetuadas</td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        DataSourceID="AccessDataSource1" ForeColor="DarkBlue" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField HeaderText="C&#243;digo do Material" />
                            <asp:BoundField HeaderText="T&#237;tulo do Material" />
                            <asp:BoundField HeaderText="Autor" />
                            <asp:BoundField HeaderText="Data da Reserva" />
                            <asp:BoundField HeaderText="Libera&#231;&#227;o" />
                            <asp:BoundField HeaderText="Data do Empr&#233;stimo" />
                            <asp:BoundField HeaderText="Situa&#231;&#227;o" />
                        </Columns>
                    </asp:GridView>
                    <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Banco de Dados1.mdb"
                        SelectCommand="SELECT [codmaterial], [titulomaterial], [autor], [datareserva], [liberacao], [dataemprestimo], [situacao] FROM [testegrid] ORDER BY [codmaterial]">
                    </asp:AccessDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px">
                    <input id="Button6" type="button" value="Ordenar" /></td>
                <td style="width: 356px; height: 26px">
                </td>
                <td style="width: 8px; height: 26px">
                    <input id="Button7" style="font-size: 7pt" type="button" value="Consultar" /></td>
            </tr>
        </table>
    </asp:Content>
</body>
</html>
